package com.mayikt.days07;

/**
 * @ClassName Test003
 * @Author 蚂蚁课堂余胜军 QQ644064779 www.mayikt.com
 * @Version V1.0
 **/
public class Test003 {
    private static ThreadLocal<String> threadLocal = new ThreadLocal<>();

    public static void main(String[] args) throws InterruptedException {
        Thread thread = new Thread(() -> {
            threadLocal.set("每特教育666");
            System.out.println("成功设置threadLocal");

        });
        thread.start();
        thread.join();
        System.out.println(Thread.currentThread().getName() + "," + threadLocal.get());

    }
}
